import Mock from "mockjs";
import { login } from "./login";
import {
  cateBarData,
  CollegePieData,
  RecentLineData,
  RecentIssueData,
} from "./homeData";
import { leftOneData, rightOneData, rightTwoData } from "./distributeDetail";
import { getTopOne, getBottomTwo } from "./IssueDetail";
import { statusPullData, usageDirectData } from "./statuDetailData";

Mock.setup({
  timeout: "200-600", // 设置响应时间在200-600ms之间
});

// 配置mock拦截接口
Mock.mock("/api/admin/login", "post", login);

Mock.mock("/api/homeData/getcateBarData", "get", cateBarData);
Mock.mock("/api/homeData/getCollegePieData", "get", CollegePieData);
Mock.mock("/api/homeData/getRecentAdd", "get", RecentLineData);
Mock.mock("/api/homeData/getRecentIssue", "get", RecentIssueData);

Mock.mock("/api/distributeDetail/getLeftOne", "get", leftOneData);
Mock.mock("/api/distributeDetail/getRightOne", "get", rightOneData);
Mock.mock("/api/distributeDetail/getRightTwo", "get", rightTwoData);

Mock.mock("/api/issueDetail/getTopOne", "get", getTopOne);
Mock.mock("/api/issueDetail/getBottomTwo", "get", getBottomTwo);

Mock.mock("/api/statuDetailData/getStatusPullData", "get", statusPullData);
Mock.mock("/api/statuDetailData/getUsageDirectData", "get", usageDirectData);
